package top.rainbowecho.model.percona;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 存储用户的浏览记录
 * </p>
 *
 * @author 杨健
 * @since 2020-10-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_browse")
@NoArgsConstructor
@AllArgsConstructor
public class Browse implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 浏览的文章id
     */
    @TableId("article_id")
    private String articleId;

    /**
     * 浏览文章的用户的id
     */
    @TableField("user_id")
    private String userId;

    /**
     * 最近浏览时间
     */
    @TableField("latest_time")
    private LocalDateTime latestTime;


}
